<div class="modal fade addKeyWordWin" id="historicalIndexing">
    <div class="modal-dialog modal-lg modal-dialog-centered" style="width: 1000px;">
        <div class="modal-content">
            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="modal-title">历史标引版本</h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <!-- 模态框主体 -->
            <div class="modal-body addAuthorityBox">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 table-thead"  [ngClass]="{'table-thead-scroll':tabVal && tabVal.length > 5}">
                            <table class="table table-striped table-bordered table-hover tableStyle">
                                <thead>
                                    <tr>
                                        <th class="w5 text-left max-w">版本号</th>
                                        <th class="w15 text-left max-w">版本标志日期</th>
                                        <th class="w15 text-left max-w">标记人</th>
                                        <!--<th>主题词表</th>-->
                                        <th class="w15 text-left max-w">版本说明 </th>
                                        <th class="w15 text-left max-w">操作</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 table-tbody" style="height:180px;">
                            <table class="table table-striped table-bordered table-hover tableStyle">
                                <tbody>
                                    <tr *ngFor="let val of tabVal;let i = index" class="version-link" [ngClass]="{'version-link-active':val.versionId == currentVersionActive}">
                                        <td class="w5 text-left max-w" title="点击显示版本详情" #event (click)="_detail(val.versionId,val.versionName)">{{ val.versionName }}</td>
                                        <td class="w15 text-left max-w" title="点击显示版本详情" #event (click)="_detail(val.versionId,val.versionName)">{{ val.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
                                        <td class="w15 text-left max-w" title="点击显示版本详情" #event (click)="_detail(val.versionId,val.versionName)">{{ val.createBy }}</td>
                                        <!--<td title="点击显示版本详情" #event (click)="_detail(val.versionId,val.versionName)">{{ val.ThemeTableName }}</td>-->
                                        <td class="w15 text-left max-w" title="点击显示版本详情" #event (click)="_detail(val.versionId,val.versionName)" >{{ val.description }}</td>
                                        <td class="w15 text-left max-w"><span class="tableOperationText" *ngIf="internalParam.completeStatus != '1'" #event (click)="_useVersionTips(val.versionId,val.versionName)">用此版本</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 HI-win-p">
                            <p><span *ngIf="currentShowVersionName != ''">({{ currentShowVersionName }})</span> 版本详情</p>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 table-thead"  [ngClass]="{'table-thead-scroll':detailTabVal && detailTabVal.length > 5}">
                            <table class="table table-striped table-bordered table-hover tableStyle">
                                <thead>
                                    <tr>
                                        <th class="w15 text-left max-w">主题词表</th>
                                        <th class="w15 text-left max-w">主题词</th>
                                        <th class="w15 text-left max-w" *ngIf="taskType == 2">标引主题词表</th>
                                        <th class="w15 text-left max-w" *ngIf="taskType == 2">标引主题词</th>
                                        <th class="w15 text-left max-w">标引人</th>
                                        <th class="w15 text-left max-w">标引时间</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 table-tbody" style="height:200px;">
                            <table class="table table-striped table-bordered table-hover tableStyle">
                                <tbody>
                                    <tr *ngFor="let valDetail of detailTabVal;">
                                        <td class="w15 text-left max-w" *ngIf="taskType == 2">{{ valDetail.relThemeTableName }}</td>
                                        <td class="w15 text-left max-w" *ngIf="taskType == 2">{{ valDetail.relThemeWordsName }}</td>
                                        <td class="w15 text-left max-w" *ngIf="taskType == 2">{{ valDetail.themeTableName }}</td>
                                        <td class="w15 text-left max-w" *ngIf="taskType == 2">{{ valDetail.themeWordsName }}</td>
                                        <td class="w15 text-left max-w" *ngIf="taskType != 2">{{ valDetail.themeTableName }}</td>
                                        <td class="w15 text-left max-w" *ngIf="taskType != 2">{{ valDetail.themeWordsName }}</td>
                                        <td class="w15 text-left max-w">{{ valDetail.createBy }}</td>
                                        <td class="w15 text-left max-w">{{valDetail.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 分页 BEGIN -->
            <!--<app-pagination [getTotalItems]="this.detailTotalItems" (isLoadTableFromPagination)="isLoadTableFromPagination($event)"></app-pagination>-->
            <!-- 分页 END -->
            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>

<!--完成标引提示-->
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true" id="useVersionTips">
    <div class="modal-dialog delete-modal modal-sm modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title text-center">使用版本提示</h4></div>
            <div class="modal-body text-center">
                <p class="delete-prompt">当前选择的版本是[{{ currentVersionName }}]，请确认是否使用！</p></div>
            <div class="modal-footer" style="width: 100%;">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" (click)="_useVersion();" >确定</button>
            </div>
        </div>
    </div>
</div>
<!--完成标引提示-->
